#include "iostream"
#include "string"

using namespace std;

#include "QObject.h"
#include "QWidget.h"
#include "MyPushButton.h"



class MyQWidget : public QWidget {
public:
    MyPushButton *pButton;
    MyQWidget() {
        cout << "MyQWidget调用" << this <<endl;
        MyPushButton *pButton = new MyPushButton();
        this->pButton = pButton;
    }
    void de() {
        delete pButton;
    }
    virtual ~MyQWidget() {
        cout << "MyQWidget析构函数" << endl;
    }
};

int main() {
    MyQWidget myQWidget;
    myQWidget.de();
}